<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 500px;
            height: 320px;
            background-color: red;
            overflow: hidden;
        }
        div img{
            width: 500px;
            height: 320px;
            transition-property: all;
            transition-duration: 2s;
            /* animation-direction: alternate; */
        }
        img:hover{
            width: 600px;
            height: 400px;
        }
    </style>
<body>
    <div>
        <img src="./大脸猫.jpg" >
    </div>
</body>
</html>